<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<input type="hidden" name="zh_parsen/fzr_name" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>"/>
<input type="hidden" name="zh_parsen/fzr_mobile" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>"/>
<input type="hidden" name="zh_parsen/fzr_tel" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>"/>
<input type="hidden" name="zh_parsen/fzr_email" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>"/>
<div class="t_bar"><span class="color_red">*</span>项目基本情况</div>
<table class="t_css" width="100%" id="table_01">
<col style="width: 20%;"/>
<col style="width: 16%;"/>
<col style="width: 24%;"/>
<col style="width: 16%;"/>
<col style="width: 24%;"/>

    <tr>
        <td align="right">实验室名称：</td>
        <td colspan="4">
        	<input type='text' name='proposal/zh_title' id='zh_title' style="width: 90%" class="input_css required" maxlength="50" value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="实验室名称">
        </td>
    </tr>
    <tr>
       <td align="right">实验室批准日期：</td>
       <td colspan="2">
           <c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
              <cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date" label="实验室批准日期"></cpt:date> 
       </td>
       <td align="right">实验室验收日期：</td>
       <td>
           <c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
           <cpt:date id="end_date" name="proposal/end_date" value="${end_date}" className="required date" label="实验室验收日期"></cpt:date>
       </td>
    </tr>
    <tr>
        <td align="right">联系人姓名：</td>
        <td colspan="2">
            <input  type="text" label="联系人姓名" name="proposal/administrative_department_name" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/administrative_department_name" />">
        </td>
        <td align="right">联系人手机：</td>
        <td>
            <input type="text" label="联系人手机" name="proposal/administrative_department_mobile" class="input_css required mobile" onfocus="InitInput.setNumber(this,11,0,0)" maxlength="11" value="<x:out select="$xmlData/data/proposal/administrative_department_mobile" />">
        </td>
    </tr>
    <tr>
        <td align="right">项目报审级次：<br/>（省补助资金拨付所属财政局）</td>
        <td colspan="2">
            <c:set var="sub_step">{'id':'<x:out select="$xmlData/data/proposal/sub_step_value" />','name':'<x:out select="$xmlData/data/proposal/sub_step_name" />'}</c:set>
            <cpt:tree key="sub_step" cacheable="false" className="hn_iuput_kuang" readonly="true" value="${sub_step}"  label="项目报审级次" 
                id="sub_step" onlyChooseLeaf="false" showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
            <input id="sub_step_value" type="hidden" name="proposal/sub_step_value" class="required" label="项目报审级次" value="<x:out select="$xmlData/data/proposal/sub_step_value" />"/>
            <input id="sub_step_name" type="hidden" name="proposal/sub_step_name"  value="<x:out select="$xmlData/data/proposal/sub_step_name" />"/>
        </td>
        <td align="right">项目申请金额：<br/>（万元）</td>
        <td>
            <input type='text' name='proposal/request_amt' class="input:css required" id='request_amt' onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;" value='<x:out select="$xmlData/data/proposal/request_amt"/>' label="项目申请金额">
        </td>
    </tr>
    <tr>
        <td align="right">归口管理部门：</td>
        <td colspan="2">
        	<c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
			<cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang " readonly="true" value="${recomend_org}"  label="归口管理部门"
        			id="recomend_org" onlyChooseLeaf="false"  showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
			<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"  class="required"  value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" label="归口管理部门">
			<input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
		</td>
		<td  align="right" >申报日期：</td>
        <td>
            <c:set var="submit_date">
                <x:out select="$xmlData/data/proposal/submit_date" />
            </c:set>
            <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date" label="申报日期" ></cpt:date>
        </td>
    </tr>
    <tr>
       <td rowspan="4" align="right">实验室主任：</td>
       <td align="right">姓名：</td>
       <td>
           <input  type="text" label="实验室主任-->姓名" name="proposal/lab_director_name" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/lab_director_name" />">
       </td>
       <td align="right">出生日期：</td>
       <td>
           <c:set var="lab_director_birthday"><x:out select="$xmlData/data/proposal/lab_director_birthday" /></c:set>
           <cpt:date id="lab_director_birthday" name="proposal/lab_director_birthday" value="${lab_director_birthday}" className="required date beforeToday" label="实验室主任-->出生日期"></cpt:date>
       </td>
    </tr>
    <tr>
        <td align="right">民族：</td>
        <td>
            <c:set var="lab_director_nation">
                <x:out select='$xmlData/data/proposal/lab_director_nation_value' />
            </c:set>
            <cpt:select key="nation" id="lab_director_nation" value="${lab_director_nation}" style="width: 71%;" className="lab_director_nation" /> 
            <input id="lab_director_nation_value" name="proposal/lab_director_nation_value" type="hidden" value="${lab_director_nation}"  class="required" label="实验室主任-->民族" />
            <input id="lab_director_nation_name" name="proposal/lab_director_nation_name" type="hidden" value="<x:out select='$xmlData/data/proposal/lab_director_nation_name' />" />
        </td>
        <td align="right">学科专长：</td>
        <td>
            <input  type="text" label="实验室主任-->学科专长" name="proposal/lab_director_expertise" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/lab_director_expertise" />">
        </td>
    </tr>
    <tr>
        <td align="right">职称：</td>
        <td>
            <c:set var="proftitlevalue1">{'id':'<x:out select='$xmlData/data/proposal/lab_director_prof_title_value' />','name':'<x:out select='$xmlData/data/proposal/lab_director_prof_title_name' />'}</c:set>
            <cpt:tree key="prof_title" cacheable="false" readonly="true" value="${proftitlevalue1}" id="lab_director_prof_title" name="lab_director_prof_title"  showPattern="all" onClick="initTreeValueExt" shieldPattern="-1" label="实验室主任-->职称" />
            <input type="hidden" id="lab_director_prof_title_value" name="proposal/lab_director_prof_title_value" value="<x:out select='$xmlData/data/proposal/lab_director_prof_title_value' />" class="required" label="实验室主任-->职称" /> 
            <input type="hidden" id="lab_director_prof_title_name" name="proposal/lab_director_prof_title_name" value="<x:out select='$xmlData/data/proposal/lab_director_prof_title_name' />" /></td>
        </td>
        <td align="right">职务：</td>
        <td>
            <input  type="text" label="实验室主任-->职务" name="proposal/lab_director_job" class="input_css required" maxlength="20" value="<x:out select="$xmlData/data/proposal/lab_director_job" />">
        </td>
    </tr>
    <tr>
       <td align="right">最后学位 ：</td>
       <td colspan="3">
	       <c:set var="lab_director_highest_degree_value"><x:out select="$xmlData/data/proposal/lab_director_highest_degree_value" /></c:set> 
	       <cpt:checkbox key="highest_degree" name="lab_director_highest_degree"  width="70px"  repeatColumn="3" value="${lab_director_highest_degree_value }"  tagType="radio" ></cpt:checkbox>
	       <input type="hidden" id="lab_director_highest_degree_value" name="proposal/lab_director_highest_degree_value" class="required" value="${lab_director_highest_degree_value}" label="实验室主任-->最后学位"> 
	       <input type="hidden" name="proposal/lab_director_highest_degree_name" value="<x:out select="$xmlData/data/proposal/lab_director_highest_degree_name" />">
       </td>
    </tr>
    
    <tr>
       <td rowspan="4" align="right">学委会主任：</td>
       <td align="right">姓名：</td>
       <td>
           <input  type="text" label="学委会主任-->姓名" name="proposal/academic_committee_director_name" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/academic_committee_director_name" />">
       </td>
       <td align="right">出生日期：</td>
       <td>
           <c:set var="academic_committee_director_birthday"><x:out select="$xmlData/data/proposal/academic_committee_director_birthday" /></c:set>
           <cpt:date id="academic_committee_director_birthday" name="proposal/academic_committee_director_birthday" value="${academic_committee_director_birthday}" className="required date beforeToday" label="学委会主任-->出生日期"></cpt:date>
       </td>
    </tr>
    <tr>
        <td align="right">民族：</td>
        <td>
            <c:set var="academic_committee_director_nation">
                <x:out select='$xmlData/data/proposal/academic_committee_director_nation_value' />
            </c:set>
            <cpt:select key="nation" id="academic_committee_director_nation" value="${academic_committee_director_nation}" style="width: 71%;" className="academic_committee_director_nation" /> 
            <input id="academic_committee_director_nation_value" name="proposal/academic_committee_director_nation_value" type="hidden" value="${academic_committee_director_nation}"  class="required" label="学委会主任-->民族" />
            <input id="academic_committee_director_nation_name" name="proposal/academic_committee_director_nation_name" type="hidden" value="<x:out select='$xmlData/data/proposal/academic_committee_director_nation_name' />" />
        </td>
        <td align="right">学科专长：</td>
        <td>
            <input  type="text" label="学委会主任-->学科专长" name="proposal/academic_committee_director_expertise" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/academic_committee_director_expertise" />">
        </td>
    </tr>
    <tr>
        <td align="right">职称：</td>
        <td>
            <c:set var="proftitlevalue2">{'id':'<x:out select='$xmlData/data/proposal/academic_committee_director_prof_title_value' />','name':'<x:out select='$xmlData/data/proposal/academic_committee_director_prof_title_name' />'}</c:set>
            <cpt:tree key="prof_title" cacheable="false" readonly="true" value="${proftitlevalue2}" id="academic_committee_director_prof_title" name="academic_committee_director_prof_title"  showPattern="all" onClick="initTreeValueExt" shieldPattern="-1" label="学委会主任-->职称" />
            <input type="hidden" id="academic_committee_director_prof_title_value" name="proposal/academic_committee_director_prof_title_value" value="<x:out select='$xmlData/data/proposal/academic_committee_director_prof_title_value' />" class="required" label="学委会主任-->职称" /> 
            <input type="hidden" id="academic_committee_director_prof_title_name" name="proposal/academic_committee_director_prof_title_name" value="<x:out select='$xmlData/data/proposal/academic_committee_director_prof_title_name' />" /></td>
        </td>
        <td align="right">职务：</td>
        <td>
            <input  type="text" label="学委会主任-->职务" name="proposal/academic_committee_director_job" class="input_css required" maxlength="20" value="<x:out select="$xmlData/data/proposal/academic_committee_director_job" />">
        </td>
    </tr>
    <tr>
        <td align="right">最后学位 ：</td>
        <td colspan="3">
            <c:set var="academic_committee_director_highest_degree_value"><x:out select="$xmlData/data/proposal/academic_committee_director_highest_degree_value" /></c:set> 
            <cpt:checkbox key="highest_degree" name="academic_committee_director_highest_degree"  width="70px"  repeatColumn="3" value="${academic_committee_director_highest_degree_value }"  tagType="radio" ></cpt:checkbox>
            <input type="hidden" id="academic_committee_director_highest_degree_value" name="proposal/academic_committee_director_highest_degree_value" class="required" value="${academic_committee_director_highest_degree_value}" label="学委会主任-->最后学位"> 
            <input type="hidden" name="proposal/academic_committee_director_highest_degree_name" value="<x:out select="$xmlData/data/proposal/academic_committee_director_highest_degree_name" />">
        </td>
    </tr>
    
    <tr>
        <td rowspan="4" align="right">依托单位：</td>
        <td align="right">名称：</td>
        <td colspan="3">
            <input type="text" label="依托单位-->名称" name="proposal/support_unit_name" class="input_css required" maxlength="60" value="<x:out select="$xmlData/data/proposal/support_unit_name" />">
        </td>
    </tr>
    <tr>
        <td align="right">性质 ：</td>
        <td colspan="3">
            <c:set var="support_unit_nature_value"><x:out select="$xmlData/data/proposal/support_unit_nature_value" /></c:set> 
            <cpt:checkbox key="support_unit_nature" name="support_unit_nature"  width="70px"  repeatColumn="4" value="${support_unit_nature_value }"  tagType="radio" ></cpt:checkbox>
            <input type="hidden" id="support_unit_nature_value" name="proposal/support_unit_nature_value" class="required" value="${support_unit_nature_value}" label="依托单位-->性质"> 
            <input type="hidden" name="proposal/support_unit_nature_name" value="<x:out select="$xmlData/data/proposal/support_unit_nature_name" />">
        </td>
    </tr>
    <tr>
        <td align="right">详细地址 ：</td>
        <td colspan="3">
            <input type="text" label="依托单位-->详细地址" name="proposal/support_unit_address" class="input_css required" maxlength="80" style="width: 89.5%" value="<x:out select="$xmlData/data/proposal/support_unit_address" />">
        </td>
    </tr>
    <tr>
        <td align="right">邮政编码：</td>
        <td>
            <input type="text" label="依托单位-->邮政编码" name="proposal/support_unit_zip_code" class="input_css required" onkeyup="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')" maxlength="6" value="<x:out select="$xmlData/data/proposal/support_unit_zip_code" />">
        </td>
        <td align="right">主管部门：</td>
        <td>
            <input type="text" label="依托单位-->主管部门" name="proposal/support_unit_dept" class="input_css required" maxlength="80" value="<x:out select="$xmlData/data/proposal/support_unit_dept" />">
        </td>
    </tr>
</table>
	
<!-- 代表性研究成果 ，可手动添加 -->
<div class="t_bar"><span class="color_red">*</span>代表性研究成果</div>
<table id="eq_table1" class="t_css" width="100%">
<col style="width: 5%"/>
<col style="width: 5%"/>
<col style="width: 50%"/>
<col style="width: 40%"/>
	<thead >
		<tr style="border:1px solid #B7D1E6">
		    <th class="TblHead" align="center">选择</th>
		    <th class="TblHead" align="center">序号</th>
		    <th class="TblHead" align="center">成果名称</th>
		    <th class="TblHead" align="center">研究方向</th>
		</tr>
	</thead>
	<tbody id="tab">
	    <tr style="display:none">
	        <td align="center">
	            <input type="radio" style="border: 0px;background-color: white;" class="radiobutton" name="selButton1" >
	        </td>
	        <td align="center">
	            <span name="achievements|achievement[0]@seq_no" >[index]</span> 
	        </td>
	        <td align="center">
	            <input type="text" name="achievements|achievement[0]|achievement_name" class="required" maxlength="60" style="width:80%" label="成果名称" value="" />
	        </td>
	        <td align="center">
	            <input type="text" name="achievements|achievement[0]|achievement_content" class="required" maxlength="100" style="width:80%" label="研究方向" value="" />
	        </td>
	    </tr>
    
    
	    <c:set value="0" var="index" scope="page"/>
	    <x:forEach select="$xmlData/data/achievements/achievement" var="achievement">
		    <c:choose>
		        <c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
		        <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		    </c:choose>
		    <tr>
		        <td align="center">
		            <input type="radio" style="border: 0px;background-color: white;" class="radiobutton" name="selButton1" >
		        </td>
		        <td align="center">
		            <span name="achievements/achievement[${flag}${index}]@seq_no"><x:out select="$achievement/@seq_no"/></span> 
		        </td>
		        
		        <td align="center">
		            <input type="text" name="achievements/achievement[${flag}${index}]/achievement_name" value="<x:out select="$achievement/achievement_name" />"  maxlength="60" class="required" style="width:80%" label="成果名称 "/>
		        </td>
		        <td align="center">
		            <input type="text" name="achievements/achievement[${flag}${index}]/achievement_content" class="required" maxlength="100" style="width:80%" label="研究成果 " value="<x:out select="$achievement/achievement_content"/>"/>
		        </td>
		    </tr>
		    <c:set value="${index+1}" var="index" scope="page"/>
	    </x:forEach>
    </tbody>
</table>
<table width="98%" align="center">
	<tr>
	    <td>
	        <input class="button_02" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('eq_table1',999,'代表性研究成果 内容最多只能填写999条')){addNewRow('eq_table1');showDateTag('eq_table1');}try{top.resizeFrame();}catch(e){};">
	        <input class="button_02" name="cmdMovePrev" type=button value="上移" onclick="movePrev('eq_table1','selButton1');">
	        <input class="button_02" name="cmdMoveNext" type=button value="下移" onclick="moveNext('eq_table1','selButton1');">
	        <input class="button_02" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('eq_table1','代表性研究成果 ');">
	    </td>
	</tr>
</table>

<div class="t_bar"><span class="color_red">*</span>承担科研任务</div>
<table class="t_css" width="100%" id="table_02">
<col style="width: 25%;"/>
<col style="width: 25%;"/>
<col style="width: 25%;"/>
<col style="width: 25%;"/>
    <tr>
        <td rowspan="10" align="right">近三年承担科研任务情况：</td>
        <td align="right">总经费：</td>
        <td align="center">万元</td>
        <td>
            <input type="text" name="proposal/total_funding" id="total_funding" onchange="setFundingPercent();" class="required" label="近三年承担科研任务情况-->总经费-->万元" style="text-align:right;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/total_funding" />"/>
        </td>
    </tr>
    <tr>
        <td rowspan="3" align="right">国家级：</td>
        <td align="center">项目数</td>
        <td>
            <input type="text" name="proposal/level1_count" class="required" label="近三年承担科研任务情况-->国家级-->项目数" style="text-align:right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/level1_count" />"/>
        </td>
    </tr>
    <tr>
        <td align="center">万元</td>
        <td>
            <input type="text" name="proposal/level1_funding" id="level1_funding" onchange="setFundingPercent();" class="required" label="近三年承担科研任务情况-->国家级-->万元" style="text-align:right;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/level1_funding" />"/>
        </td>
    </tr>
    <tr>
        <td align="center">占总经费（%）</td>
        <td>
            <input type="text" name="proposal/level1_funding_percent"  id="level1_funding_percent" class="gray" readonly="readonly" style="text-align:right;" value="<x:out select="$xmlData/data/proposal/level1_funding_percent" />"/>
        </td>
    </tr>
    
    <tr>
        <td rowspan="3" align="right">省部级：</td>
        <td align="center">项目数</td>
        <td>
            <input type="text" name="proposal/level2_count" class="required" label="近三年承担科研任务情况-->省部级-->项目数" style="text-align:right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/level2_count" />"/>
        </td>
    </tr>
    <tr>
        <td align="center">万元</td>
        <td>
            <input type="text" name="proposal/level2_funding" id="level2_funding" onchange="setFundingPercent();" class="required" label="近三年承担科研任务情况-->省部级-->万元" style="text-align:right;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/level2_funding" />"/>
        </td>
    </tr>
    <tr>
        <td align="center">占总经费（%）</td>
        <td>
            <input type="text" name="proposal/level2_funding_percent"  id="level2_funding_percent" class="gray" readonly="readonly" style="text-align:right;" value="<x:out select="$xmlData/data/proposal/level2_funding_percent" />"/>
        </td>
    </tr>
    
    <tr>
        <td rowspan="3" align="right">25项主要科研任务：</td>
        <td align="center">万元</td>
        <td>
            <input type="text" name="proposal/level3_funding" id="level3_funding" onchange="setFundingPercent();" class="required" label="近三年承担科研任务情况-->25项主要科研任务-->万元" style="text-align:right;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/level3_funding" />"/>
        </td>
    </tr>
    <tr>
        <td align="center">占总经费（%）</td>
        <td>
            <input type="text" name="proposal/level3_funding_percent"  id="level3_funding_percent" class="gray" style="text-align:right;" readonly="readonly" value="<x:out select="$xmlData/data/proposal/level3_funding_percent" />"/>
        </td>
    </tr>
    <tr>
	    <td align="center">人均承担项目（万元/人）</td>
	    <td>
	        <input type="text" name="proposal/level3_avg_funding" id="level3_avg_funding" class="required" label="近三年承担科研任务情况-->25项主要科研任务-->人均承担项目" style="text-align:right;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/level3_avg_funding" />"/>
	    </td>
    </tr>
    
    <tr>
        <td align="right" colspan="2" rowspan="2">产学研合作项目：</td>
        <td align="center">项目数</td>
        <td>
            <input type="text" name="proposal/level4_count" class="required" label="产学研合作项目-->项目数" style="text-align:right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/level4_count" />"/>
        </td>
    </tr>
    <tr>
        <td align="center">万元</td>
        <td>
            <input type="text" name="proposal/level4_funding" class="required" label="产学研合作项目-->万元" style="text-align:right;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/level4_funding" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>获奖情况</div>
<table class="t_css" width="100%" style="text-align: center;" id="table_03">
<col style="width: 20%;"/>
<col style="width: 20%;"/>
<col style="width: 20%;"/>
<col style="width: 20%;"/>
<col style="width: 20%;"/>
    <tr>
        <td colspan="2">国家级</td>
        <td colspan="3">省部级</td>
    </tr>
    <tr>
        <td>一等</td>
        <td>二等</td>
        <td>一等</td>
        <td>二等</td>
        <td>三等</td>
    </tr>
     <tr>
        <td>
            <input type="text" name="proposal/national_level1_count" class="required" label="国家级-->一等" style="text-align:right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/national_level1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/national_level2_count" class="required" label="国家级-->二等" style="text-align:right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/national_level2_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/provincial_level1_count" class="required" label="省部级-->一等" style="text-align:right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/provincial_level1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/provincial_level2_count" class="required" label="省部级-->二等" style="text-align:right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/provincial_level2_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/provincial_level3_count" class="required" label="省部级-->三等" style="text-align:right;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/provincial_level3_count" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>队伍建设</div>
<table class="t_css" width="100%" style="text-align: center;" id="table_04">
<col style="width: 12.5%"/>
<col style="width: 12.5%"/>
<col style="width: 12.5%"/>
<col style="width: 12.5%"/>
<col style="width: 12.5%"/>
<col style="width: 12.5%"/>
<col style="width: 12.5%"/>
<col style="width: 12.5%"/>
    <tr>
        <td rowspan="2">固定人员构成<br/>（人）</td>
        <td>总数</td>
        <td>正高</td>
        <td>副高</td>
        <td>博士</td>
        <td>硕士</td>
        <td>35岁以下</td>
        <td>35-50岁</td>
    </tr>
    <tr>
        <td>
            <input type="text" name="proposal/team_psn_total_count"  id="team_psn_total_count" class="gray" style="text-align:right;width: 80%;" readonly="readonly" value="<x:out select="$xmlData/data/proposal/team_psn_total_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/team_psn_level1_count" class="required" onchange="setTotalPsn1();" id="team_psn_level1_count" label="固定人员构成-->正高" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/team_psn_level1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/team_psn_level2_count" class="required" onchange="setTotalPsn1();" id="team_psn_level2_count" label="固定人员构成-->副高" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/team_psn_level2_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/team_psn_level3_count" class="required" onchange="setTotalPsn1();" id="team_psn_level3_count" label="固定人员构成-->博士" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/team_psn_level3_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/team_psn_level4_count" class="required" onchange="setTotalPsn1();" id="team_psn_level4_count" label="固定人员构成-->硕士" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/team_psn_level4_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/team_psn_age1_count" class="required" label="固定人员构成-->35岁以下" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/team_psn_age1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/team_psn_age2_count" class="required" label="固定人员构成-->35-50岁" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/team_psn_age2_count" />"/>
        </td>
    </tr>
    
    <tr>
        <td rowspan="2">学术带头人<br/>（人）</td>
        <td>总数</td>
        <td colspan="2">在国际学术机构担任负责人和执委</td>
        <td colspan="2">在国内学术机构担任负责人和执委</td>
        <td colspan="2">在省内学术机构担任负责人和执委</td>
    </tr>
    <tr>
        <td>
            <input type="text" name="proposal/learning_psn_total_count"  id="learning_psn_total_count" class="gray" style="text-align:right;width: 80%;" readonly="readonly" value="<x:out select="$xmlData/data/proposal/learning_psn_total_count" />"/>
        </td>
        <td colspan="2">
            <input type="text" name="proposal/learning_psn_level1_count" id="learning_psn_level1_count" onchange="setTotalPsn2();" class="required" label="学术带头人-->在国际学术机构担任负责人和执委" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/learning_psn_level1_count" />"/>
        </td>
        <td colspan="2">
            <input type="text" name="proposal/learning_psn_level2_count" id="learning_psn_level2_count" onchange="setTotalPsn2();" class="required" label="学术带头人-->在国内学术机构担任负责人和执委" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/learning_psn_level2_count" />"/>
        </td>
        <td colspan="2">
            <input type="text" name="proposal/learning_psn_level3_count" id="learning_psn_level3_count" onchange="setTotalPsn2();" class="required" label="学术带头人-->在省内学术机构担任负责人和执委" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/learning_psn_level3_count" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>人才培养</div>
<table class="t_css" width="100%" style="text-align: center;" id="table_05">
<col style="width: 25%"/>
<col style="width: 25%"/>
<col style="width: 12.5%"/>
<col style="width: 12.5%"/>
<col style="width: 25%"/>
	<tr>
	    <td rowspan="2">吸引、培养人才<br/>（人）</td>
	    <td colspan="2">入选国家级人才计划</td>
	    <td colspan="2">入选省部级人才计划</td>
    </tr>
    <tr>
        <td colspan="2">
            <input type="text" name="proposal/talent_status1_level1_count" class="required" label="吸引、培养人才-->入选国家级人才计划" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/talent_status1_level1_count" />"/>
        </td>
        <td colspan="2">
            <input type="text" name="proposal/talent_status1_level2_count" class="required" label="吸引、培养人才-->入选省部级人才计划" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/talent_status1_level2_count" />"/>
        </td>
    </tr>
    
    <tr>
        <td rowspan="2">已培养研究生<br/>（人）</td>
        <td>博士后</td>
        <td colspan="2">博士生</td>
        <td>硕士生</td>
    </tr>
    <tr>
        <td>
            <input type="text" name="proposal/talent_status2_level1_count" class="required" label="已培养研究生-->博士后" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/talent_status2_level1_count" />"/>
        </td>
        <td colspan="2">
            <input type="text" name="proposal/talent_status2_level2_count" class="required" label="已培养研究生-->博士生" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/talent_status2_level2_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/talent_status2_level3_count" class="required" label="已培养研究生-->硕士生" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/talent_status2_level3_count" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>开放交流</div>
<table class="t_css" width="100%" style="text-align: center;" id="table_06">
<col style="width: 16%"/>
<col style="width: 16%"/>
<col style="width: 9%"/>
<col style="width: 9%"/>
<col style="width: 9%"/>
<col style="width: 9%"/>
<col style="width: 16%"/>
<col style="width: 16%"/>
    <tr>
        <td colspan="2">客座人员（人次）</td>
        <td colspan="4">学术会议（次）</td>
        <td colspan="2">开放课题及国际合作项目</td>
    </tr>
    <tr>
        <td rowspan="2">国外</td>
        <td rowspan="2">国内</td>
        <td colspan="2">国际性</td>
        <td colspan="2">全国性</td>
        <td rowspan="2">项目数</td>
        <td rowspan="2">经费<br/>（万元）</td>
    </tr>
    <tr>
        <td>承办</td>
        <td>参加</td>
        <td>承办</td>
        <td>参加</td>
    </tr>
    <tr>
        <td>
            <input type="text" name="proposal/communication_status1_level1_count" class="required" label="客座人员-->国外" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/communication_status1_level1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/communication_status1_level2_count" class="required" label="客座人员-->国内" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/communication_status1_level2_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/communication_status2_1_level1_count" class="required" label="学术会议-->国际性-->承办" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/communication_status2_1_level1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/communication_status2_1_level2_count" class="required" label="学术会议-->国际性-->参加" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/communication_status2_1_level2_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/communication_status2_2_level1_count" class="required" label="学术会议-->全国性-->承办" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/communication_status2_2_level1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/communication_status2_2_level2_count" class="required" label="学术会议-->全国性-->参加" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/communication_status2_2_level2_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/communication_status3_level1_count" class="required" label="开放课题及国际合作项目-->项目数" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/communication_status3_level1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/communication_status3_level2_count" class="required" label="开放课题及国际合作项目-->经费" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/communication_status3_level2_count" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>依托单位保障</div>
<table class="t_css" width="100%" style="text-align: center;" id="table_07">
<col style="width: 20%"/>
<col style="width: 20%"/>
<col style="width: 20%"/>
<col style="width: 20%"/>
<col style="width: 20%"/>
    <tr>
        <td>实验室面积（平方米）</td>
        <td>实验室研究单元数</td>
        <td>三年新增大型设备台数（台）</td>
        <td>仪器设备总值（万元）</td>
        <td>三年经费投入（万元）</td>
    </tr>
    <tr>
        <td>
            <input type="text" name="proposal/guarantee_status1_count" class="required" label="实验室面积" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/guarantee_status1_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/guarantee_status2_count" class="required" label="实验室研究单元数" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/guarantee_status2_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/guarantee_status3_count" class="required" label="三年新增大型设备台数" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/guarantee_status3_count" />"/>
        </td>
        <td>
            <input type="text" name="proposal/guarantee_status4_funding" class="required" label="仪器设备总值" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/guarantee_status4_funding" />"/>
        </td>
        <td>
            <input type="text" name="proposal/guarantee_status5_funding" class="required" label="三年经费投入" style="text-align:right;width: 80%;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/guarantee_status5_funding" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>项目简述（限280字）</div>
<table class="t_css" width="100%" style="text-align: center;" id="table_08">
    <tr>
        <td>
            <textarea name="proposal/prj_brief" class="input_textarea required maxlength:280" label="项目简述" style="width: 98%" rows="9"><x:out select="$xmlData/data/proposal/prj_brief" /></textarea>
            <input type="hidden" name="proposal/prj_brief_hidden" value="<x:out select="$xmlData/data/proposal/prj_brief_hidden" />"/>
        </td>
    </tr>
</table>
<p>注： </p>
<p>1、“代表性研究成果”是指评估期限内在重点实验室主要研究方向上，以实验室为基地、实验室固定人员为主产生的重大科研成果。代表性成果应是针对某个具体科技问题取得的重要科研系列进展，名称表述应明确、具体，而不是某研究方向上关联度不高的成果的汇总和拼盘。</p>
<p>2、“已培养研究生”是指评估期限内在重点实验室培养并毕业的博士后、博士生、硕士生人数，其发表的毕业论文须标注实验室名称，否则不予以计算在内。</p>

<script type="text/javascript">

//-------------------计算经费百分比--------------------begin
function setFundingPercent(){
	var total_funding = $('#total_funding').val();
	if($.isNumeric(total_funding) && parseInt(total_funding)!=0){
		total_funding = parseFloat(total_funding);
		var level1_funding = parseFloat($.isNumeric($('#level1_funding').val())?$('#level1_funding').val():'0');
		var level2_funding = parseFloat($.isNumeric($('#level2_funding').val())?$('#level2_funding').val():'0');
		var level3_funding = parseFloat($.isNumeric($('#level3_funding').val())?$('#level3_funding').val():'0');
		
		var level1_avg_funding = (level1_funding/total_funding)*100;
		var level2_avg_funding = (level2_funding/total_funding)*100;
		var level3_avg_funding = (level3_funding/total_funding)*100;
		
		$('#level1_funding_percent').val(level1_avg_funding.toFixed(2));
		$('#level2_funding_percent').val(level2_avg_funding.toFixed(2));
		$('#level3_funding_percent').val(level3_avg_funding.toFixed(2));
	}else {
		$('#level1_funding_percent').val("");
		$('#level2_funding_percent').val("");
		$('#level3_funding_percent').val("");
	}
}

//-------------------计算经费百分比--------------------end

//-------------------人员总数计算--------------------begin
function setTotalPsn1(){
	var team_psn_level1_count = Number($('#team_psn_level1_count').val());
	var team_psn_level2_count = Number($('#team_psn_level2_count').val());
	var team_psn_level3_count = Number($('#team_psn_level3_count').val());
	var team_psn_level4_count = Number($('#team_psn_level4_count').val());
	
	var team_psn_total_count = team_psn_level1_count + team_psn_level2_count + team_psn_level3_count + team_psn_level4_count; 
	$('#team_psn_total_count').val(team_psn_total_count);
}

function setTotalPsn2(){
	var learning_psn_level1_count = Number($('#learning_psn_level1_count').val());
	var learning_psn_level2_count = Number($('#learning_psn_level2_count').val());
	var learning_psn_level3_count = Number($('#learning_psn_level3_count').val());
	
	var learning_psn_total_count = learning_psn_level1_count + learning_psn_level2_count + learning_psn_level3_count;
	$('#learning_psn_total_count').val(learning_psn_total_count);
}
//-------------------人员总数计算--------------------end


function initTreeValueExt(treeId, treeNode) {
 	if ((treeNode && treeNode.isParent)) {
 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
 		$("#" + treeId).val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
 		return false;
 	}
 	var str = treeNode.name;
 	var obj = treeNode.parentNode;
 	while (obj != null) {
 		str = obj.name + "-" + str;
 		obj = obj.parentNode;
 	}
 	
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
}
</script>	